package example;

/**
 * 启动成功后可在浏览器输入： http://IP:port/ws/services 查看有哪些webservice；其中 ws 是配置的上下文路径
 *
 * @author Shen Huang Jian
 * @date 2020-08-06 10:01
 */
public class HelloWorld {
    public String sayHelloWorldFrom(String from) {
        String result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                "<responseInfo>" +
                     "<message>hello "+ from + "</message>" +
                     "<subList>" +
                       "<subInfo>" +
                            "<subMsg></subMsg>" +
                            "<testUnknow>unknow</testUnknow>" +
                       "</subInfo>" +
                     "</subList>" +
                "</responseInfo>";
        //System.out.println(result);
        return result;
    }
}
